FEM SolverElmer/de

FEM LöserElmer

Menüeintrag
Lösen → Löser Elmer
Arbeitsbereich
FEM
Standardtastenkürzel
S E
Eingeführt in Version
-
Siehe auch
FEM LöserElmer LöserEinstellungen, FEM Löser CalculixCcxtools, FEM Löser Z88, FEM Tutorium

Beschreibung

Elmer ist eine Open-Source-Software für multiphysikalische Simulationen, die hauptsächlich vom CSC – IT Center for Science (CSC) entwickelt wurde. Die Entwicklung von Elmer begann 1995 in Zusammenarbeit mit finnischen Universitäten, Forschungsinstituten und der Industrie. Nach der Veröffentlichung als Open-Source-Software im Jahr 2005 hat sich die Nutzung und Entwicklung von Elmer internationalisiert.

Elmer umfasst beispielsweise physikalische Modelle der Strömungsdynamik, Strukturmechanik, Elektromagnetik, Wärmeübertragung und Akustik. Diese werden durch partielle Differentialgleichungen beschrieben, die Elmer mit der Finite-Elemente-Methode (FEM) löst.

Durch das Erstellen des LöserElmer-Objekts im Analyse-Container in FreeCAD erhält man Zugriff auf die Elmer-Gleichungen für einfache oder multiphysikalische Analysen.

Since FreeCAD already has an extensive integration of Calculix and Z88 as solvers for mechanical and thermo-mechanical analysis, Elmer will be preferred for computational fluid dynamics (CFD), heat, electrostatics and electrodynamics. It can also be used for mechanical FEA through the Elasticity equation or any combination of the aforementioned equations. This combination makes Elmer the preferred choice for multi-physics analyses.

Installation

Elmer benötigt zwei Komponenten, um mit FreeCAD verbunden zu werden:

Für beide Anwendungen gibt es eigenständige Programme, deren Installation und Verwendung jedoch über den Rahmen der FreeCAD-Integration hinausgehen.

  1. Download and install the version best suited to your Operating System (Windows or Linux). It is recommended to install the mpi version to get multi-core support (introduced in 0.21).
  2. In FreeCAD go to Edit → Preferences → FEM → Elmer
  3. In the FEM preferences set the correct path for both ElmerSolver and ElmerGrid, or 0.21 and above: set the path for ElmerSolver_mpi instead of ElmerSolver to make Elmer use all available CPU cores.
    Elmer Tab in FEM Preferences

    Elmer preferences dialog menu showing fields to locate important Elmer binaries on Windows OS

Jetzt kann Elmer in FreeCAD genutzt werden.

0.19 und davor: FreeCAD starten und das Einheitensystem zu MKS in den Einstellungen ändern. See Hinweise.

Anwendung

  1. Switch to the FEM Workbench
  2. Create an Analysis container.
  3. There are several ways to invoke the command:
    • Press the Solver Elmer button.
    • Select the Solve → Solver Elmer option from the menu.
    • Use the keyboard shortcut: S then E.
  4. Edit the parameters for the solver in the Property View Data tab of the SolverElmer object in the model Tree View
  5. Double-click on the SolverElmer object to prepare an analysis run

    Dialog box to run an Elmer analysis

  6. Select the path to write the analysis in by clicking
  7. Click Write to write the case files in the directory selected previously
  8. Click Run to start the analysis

Hinweis: Für eine erfolgreiche Analyse sind mindestens ein Modell (2D oder 3D), ein Material (MaterialFluide oder MaterialFeststoff), ein NetzGmshAusForm, Gleichungen und Randbedingungen erforderlich.

Beispiel einer Baumansicht, wenn der Löser für Elmer aktiviert ist

Gleichungen

  1. Auf das LöserElmer im Modell der Baumansicht klicken
  2. Eine oder mehrere der verfügbaren Gleichungen auswählen:

Löser-Einstellungen

Visualisierung

Die Ergebnisse des Elmer-Lösers werden in Ergebnis-Pipeline-Objekten ausgegeben. (Ergebnisobjekte sind nicht möglich.)

eingeführt in 0.21

Bei transienten Analysen erhält man für jeden Ausgabeschritt eine Ergebnis-Pipeline. Um alle gleichzeitig zu bearbeiten, wählt man sie in der Baumansicht aus und legt die Parameter in der [[Property_View/de]|Eigenschaftenansicht] fest. Um Animationen des zeitlichen Verlaufs zu erstellen, empfiehlt sich derzeit folgende Vorgehensweise:

Das Ergebnis ist eine Animation ähnlich dieser:

Hinweise

  • Important: in order to get sensible results and to be able to exchange the Elmer input files (named case.sif) with others, all values in the input files must be in SI units. In FreeCAD version 0.19 and earlier this is only the case if you use the unit scheme MKS in the preferences.
  • Parameters for the Solver and for the Equations are independently set through the Property View Data tab of their respective objects in the Tree View.
  • Each equation will have a priority, for example, if trying see the effect of a convective flow of hot air, the equation for Flow should be solved with higher priority than Heat, otherwise the solver will first solve Heat through conduction and then Flow.
  • 2D vs 3D cases: Elmer can be used to solve both 2D and 3D cases. However, when defining a 2D case, the faces need to be mapped in the XY-plane of FreeCAD, otherwise the solver will try to compute a 3D case on a face, and normal vectors will be under-defined. Further information can be found in the FreeCAD forums: https://forum.freecad.org/viewtopic.php?f=18&t=48175

Dokumentation

Über den folgenden Link gelangt man zur vollständigen Dokumentation für Elmer. Diese umfasst sowohl Handbücher als auch Tutorien. Es muss beachtet werden, dass die mit „gui” gekennzeichneten Dokumente und Dateien sich in der Regel auf die Verwendung der grafischen Benutzeroberfläche von Elmer beziehen und nicht auf die FreeCAD-Implementierung von Elmer.